﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/ManageMasterPage.master" AutoEventWireup="true" CodeFile="CheckUnset.aspx.cs" Inherits="Manage_CheckUnset" Theme="主题1"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="margin: 0px auto; width: 100%; text-align:center;background-color:#f3f9eb;padding-bottom:100px" >
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Ono" DataSourceID="SqlDataSource1" CssClass="mGrid" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
            <Columns>
                <asp:CommandField ShowSelectButton="True" SelectText="接受退单" />
                <asp:BoundField DataField="Ono" HeaderText="订单编号" ReadOnly="True" SortExpression="Ono" />
                <asp:BoundField DataField="Aaccount" HeaderText="下单账号" SortExpression="Aaccount" />
                <asp:BoundField DataField="Oname" HeaderText="收餐者姓名" SortExpression="Oname" />
                <asp:BoundField DataField="Ophone" HeaderText="收餐联系方式" SortExpression="Ophone" />
                <asp:BoundField DataField="Oadr" HeaderText="收餐地址" SortExpression="Oadr" />
                <asp:CheckBoxField DataField="Opaystate" HeaderText="支付状态" SortExpression="Opaystate" />
                <asp:BoundField DataField="Opayway" HeaderText="支付途径" SortExpression="Opayway" />
                <asp:BoundField DataField="Osumprice" HeaderText="总价" SortExpression="Osumprice" />
                <asp:BoundField DataField="UStime" HeaderText="申请退单时间" SortExpression="UStime" />
                <asp:BoundField DataField="USreason" HeaderText="退单原因" SortExpression="USreason" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=SUBAI-WORKSTATI;Initial Catalog=Restaurant;Persist Security Info=True;User ID=Manager;Password=321" ProviderName="System.Data.SqlClient" SelectCommand="SELECT [Ono], [Aaccount], [Oname], [Ophone], [Oadr], [Opaystate], [Opayway], [Osumprice], [UStime], [USreason] FROM [Manager_Unset_Order] WHERE ([Ostate] = @Ostate)">
            <SelectParameters>
                <asp:Parameter DefaultValue="申请退单" Name="Ostate" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    </div>
</asp:Content>

